<!DOCTYPE html>
<html>
<head id="Head1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>管理系统</title>
    <script type="text/javascript">
        var themetype = localStorage['easyuitheme']||"default";
        document.write('<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/'+themetype+'/easyui.css"/>')
    </script>
    <!--<link rel="stylesheet" type="text/css"
          href="__PUBLIC__/easyui/themes/default/easyui.css"/>-->
    <link href="client/images/oa.ico" rel="SHORTCUT ICON">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/icon.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/all.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/index.css"/>
    <script type="text/javascript" src="__PUBLIC__/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/ideaframe.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
    <script type="text/javascript">
    var _menus = "";
        $(function (){
                var data = localStorage['userinfo'];
				if (data) {
					userinfo = JSON.parse(data);
					$("#usernameshow").text(userinfo.username);
					roletype = userinfo.roletype;
					if(roletype){
		                if(roletype == "1"){
		                    $("#iframepage").attr("src","user.html");
		                }else if(roletype == "3"){
		                    $("#iframepage").attr("src","score.html");
		                }else if(roletype == "2"){
		                    $("#iframepage").attr("src","xuanke.html");
		                }
		            }
				}else{
					window.location.href="login.html";
				}

		        if (roletype) {
		            if (roletype == "1") {
		            	_menus = {
		              	         "menus": [
		              	             {"menuid": "1", "icon": "icon-magic", "menuname": "部门管理",
		              	                 "menus": [
		              	                     {"menuid": "12", "menuname": "部门管理列表", "icon": "icon-database", "url": "qunzu.html"}
		              	                 ]},
		              	              {"menuid": "1", "icon": "icon-magic", "menuname": "考勤查看",
		              	   	                 "menus": [
		              	   	                     {"menuid": "12", "menuname": "考勤列表", "icon": "icon-database", "url": "posts.html"}
		              	   	                 ]},
		              	   	           {"menuid": "1", "icon": "icon-magic", "menuname": "通知管理",
		              		   	                 "menus": [
		              		   	                     {"menuid": "12", "menuname": "通知列表", "icon": "icon-database", "url": "notice.html"}
		              		   	                 ]},
		              		   	            {"menuid": "1", "icon": "icon-magic", "menuname": "请假管理",
			              		   	                 "menus": [
			              		   	                     {"menuid": "12", "menuname": "请假列表", "icon": "icon-database", "url": "posts3.html"}
			              		   	                 ]},
			              		   	            /*{"menuid": "1", "icon": "icon-magic", "menuname": "班级管理",
				              		   	                 "menus": [
				              		   	                     {"menuid": "12", "menuname": "班级列表", "icon": "icon-database", "url": "banji.html"}
				              		   	                 ]},*/
				              		   	            {"menuid": "1", "icon": "icon-magic", "menuname": "会议室管理",
					              		   	                 "menus": [
					              		   	                     {"menuid": "12", "menuname": "会议室列表", "icon": "icon-database", "url": "jiaoshi.html"}
					              		   	                 ]},
					              		   	            /*{"menuid": "1", "icon": "icon-magic", "menuname": "信息反馈管理",
						              		   	                 "menus": [
						              		   	                     {"menuid": "12", "menuname": "信息反馈列表", "icon": "icon-database", "url": "fankui.html"}
						              		   	                 ]},*/
		              	             {"menuid": "56", "icon": "icon-role", "menuname": "用户管理",
		              	                 "menus": [
		              	                     {"menuid": "31", "menuname": "用户列表", "icon": "icon-users", "url": "user.html"}
		              	                 ]

		              	             }
		              	         ]};
		            }else if(roletype == "3"){

		            }else if(roletype == "2"){

		            }
		            InitLeftMenu();
		        	tabClose();
		        	tabCloseEven();
		        }
				

            
        });




        


    </script>
    <style type="text/css">
        .themeblock{
            width: 10px;
            height: 10px;

            display: inline-block;
        }
    </style>
</head>
<body class="easyui-layout" style="overflow-y: hidden" scroll="no">
<noscript>
    <div
            style="position: absolute; z-index: 100000; height: 2046px; top: 0px; left: 0px; width: 100%; background: white; text-align: center;">
        <img src="images/noscript.gif" alt='抱歉，请开启脚本支持！'/>
    </div>
</noscript>
<div region="north" split="true" style="height: 100px;background-color:#93c0e7;color: #fff;font-size: 30px;text-align: center;line-height: 100px;overflow: hidden;">
	<img style="width: 80px;float: left;margin-left: 10px;margin-top:10px;" src="__PUBLIC__/images/logo.png" />
    <span style="text-shadow: 0px 0px 3px #000;">管理系统</span>
</div>

<div region="south" split="true"
     style="height: 30px;">
    <div>
        <table width="100%">
            <tr>
                <td style="width: 20%;padding-right: 50px;" align="right">
                    <a href="#" onclick="openPasswd();" id="usernameshow"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
                        href="login.html">退出</a>
                </td>
                <td style="width: 80%" align="right">
                    主题&nbsp;&nbsp;&nbsp;&nbsp;:<a href="javascript:saveTheme('default');" style="color: #2571EB;">经典</a>&nbsp;&nbsp;
                    <!--<a href="__APP__/Index/changeThem/name/default">经典</a>&nbsp;&nbsp;&nbsp;&nbsp;-->
                    <!--<a href="__APP__/Index/changeThem/name/cupertino">清新蓝</a>&nbsp;&nbsp;&nbsp;&nbsp;-->
                    <a href="javascript:saveTheme('gray');" style="color: #585858;">灰色</a>&nbsp;&nbsp;
                    <a href="javascript:saveTheme('black');" style="color: #000000;">酷黑</a>&nbsp;&nbsp;
                    <a href="javascript:saveTheme('bootstrap');" style="color: #585858;">bootstrap</a>&nbsp;&nbsp;
                    <a href="javascript:saveTheme('ui-cupertino');" style="color: #008198;">清新蓝</a>&nbsp;&nbsp;
                    <a href="javascript:saveTheme('ui-dark-hive');" style="color: #000000;">深黑</a>&nbsp;&nbsp;
                    <a href="javascript:saveTheme('ui-pepper-grinder');" style="color: #ECC73B;">花布</a>&nbsp;&nbsp;
                    <a href="javascript:saveTheme('ui-sunny');" style="color: #BF570C;">阳光</a>&nbsp;&nbsp;
                    <a href="javascript:saveTheme('metro');" style="color: #585858;">metro</a>&nbsp;&nbsp;
                    <a href="javascript:saveTheme('metro-blue');" style="color: #00AEEF;">metroblue</a>&nbsp;&nbsp;
                    <a href="javascript:saveTheme('metro-gray');" style="color: #454545;">metrogray</a>&nbsp;&nbsp;
                    <a href="javascript:saveTheme('metro-green');" style="color: #008900;">metrogreen</a>&nbsp;&nbsp;
                    <a href="javascript:saveTheme('metro-orange');" style="color: #D14625;">metroorange</a>&nbsp;&nbsp;
                    <a href="javascript:saveTheme('metro-red');" style="color: #7A0000;">metrored</a>&nbsp;&nbsp;


                </td>
                <!--<td style="width: 20%" align="right">-->
                    <!--模式：&nbsp;&nbsp;&nbsp;&nbsp;<a href="__APP__/Index/changeModel?name=index">桌面</a>&nbsp;&nbsp;&nbsp;&nbsp;-->
                    <!--<a href="__APP__/Index/changeModel/name/index2">经典</a>&nbsp;&nbsp;&nbsp;&nbsp;-->
                <!--</td>-->
            </tr>
        </table>

    </div>
</div>
<div region="west" hide="true" split="true" title="导航菜单"
     style="width: 180px;" id="west">
    <div id="nav" class="easyui-accordion" fit="true" border="false">
        <!--  导航内容 -->

    </div>
</div>
<div id="mainPanle" region="center"
     style="background: #eee; overflow-y: hidden">
    <div id="tabs" class="easyui-tabs" fit="true" border="false">
        <div title="欢迎使用" style="padding: 0px; color: red; overflow: hidden;"
             closable="true">
            <iframe src="" id="iframepage" name="iframepage"
                    frameBorder=0 width="100%" height="100%" onLoad=""></iframe>
        </div>
    </div>
</div>
<div region="east" collapsed="true" id="datetool" title="日历"
     split="true" style="width: 180px; overflow: hidden;">
    <div class="easyui-calendar"></div>
    <embed width="160" height="70" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer"
           type="application/x-shockwave-flash" allowscriptaccess="always" name="honehoneclock" bgcolor="#ffffff"
           quality="high" src="__PUBLIC__/swf/honehone_clock_wh.swf" wmode="transparent">
    </embed>
</div>

<!--修改密码窗口-->
<div id="passwdDialog" class="easyui-dialog" title="修改密码" style="width:550px;height:290px;" toolbar="#dlg-toolbar"
     buttons="#dlg-buttons2" resizable="true" modal="true" closed='true'>
    <form id="passwdForm" name="passwdForm" method="post">
        <table cellpadding="1" cellspacing="1" class="tb_custom1" style="width: 98%;">
            <tr>
                <th align="right"><label>密码：</label></th>
                <td>
                    <input id="passwd" name="passwd" value="" type="password" class="easyui-validatebox" required="true" validType="length[0,32]"
                           style="width:90%"/>
                </td>
            </tr>
            <tr>
                <th align="right"><label> 密码重复：</label></th>
                <td>
                    <input id="passwd2" name="passwd2" value="" type="password" class="easyui-validatebox" required="true" validType="length[0,32]"
                           style="width:90%"/>
                </td>
            </tr>
        </table>
    </form>
    <div id="dlg-buttons2">
        <a href="#" class="easyui-linkbutton" onclick="savePasswd();">保存</a>
    </div>
</div>

<div id="mm" class="easyui-menu" style="width: 150px;">
    <div id="mm-tabupdate">刷新</div>
    <div class="menu-sep"></div>
    <div id="mm-tabclose">关闭</div>
    <div id="mm-tabcloseall">全部关闭</div>
    <div id="mm-tabcloseother">除此之外全部关闭</div>
    <div class="menu-sep"></div>
    <div id="mm-tabcloseright">当前页右侧全部关闭</div>
    <div id="mm-tabcloseleft">当前页左侧全部关闭</div>
</div>
</body>
</html>
<script type="text/javascript">
    function saveTheme(theme){
        localStorage['easyuitheme'] = theme;
        window.location.reload();
    }
    

    function openPasswd(){
        $("#passwdDialog").dialog("open");
    }

    function savePasswd(){
        if(($("#passwdForm").form("validate"))){
            var passwd = $("#passwd").val();
            var passwd2 = $("#passwd2").val();
            if(passwd==passwd2){
                openBackGround();
                ajaxCallback("edit",{model:"User",passwd:passwd,id:userinfo.id},function(data){
                    localStorage['userinfo'] = null;
                    window.location.href="login.html";
                });
            }else{
                $.messager.alert("提示!","两次密码不一致","info",function(){

                });
            }

        }
    }
</script>